<template>
    <div class="btnBox">
        <van-button type="default" class="btn leftBtn" @click="leftBtnClick">{{leftBtnText}}</van-button>
        <van-button type="default" :disabled="disabled" class="btn rightBtn" @click="rightBtnClick">{{rightBtnText}}</van-button>
    </div>
</template>

<script>
    export default {
        name: "BottomFixButton",
        props: {
            leftBtnText: {
				type: String,
				default() {
					return '取消'
				}
            },
            rightBtnText: {
				type: String,
				default() {
					return '提交审核'
				}
            },
            disabled: {
				type: Boolean,
				default() {
					return false
				}
            },
        },
        methods: {
            //点击了左边按钮
            leftBtnClick() {
                this.$emit('leftBtnClick');
            },
            //点击了右边按钮
            rightBtnClick() {
                this.$emit('rightBtnClick');
            }
        }
    }
</script>

<style lang="less" scoped>
.btnBox {
    height: 45px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    .btn {
        width: 100%;
        height: 35px;
        margin: 0 5px;
        background: #FFFFFF;
        font-size: 15px;
        color: #212121;
        text-align: center;
        border: 0.5px solid #CCCCCC;
        border-radius: 4px;
        font-weight: 550;
    }
    .leftBtn {
        
    }
    .rightBtn {
        margin-left: 15px;
        background: #0081CC;
        color: #fff;
        background-image: linear-gradient(232deg, #0081CC 0%, #0054AE 100%);
    }
}
</style>